package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.OmsOrderProduct;
import org.apache.ibatis.annotations.Param;

/**
 * 订单-商品关联Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-29
 */
public interface OmsOrderProductMapper
{
    /**
     * 查询订单-商品关联
     *
     * @param omsOrderProductId 订单-商品关联主键
     * @return 订单-商品关联
     */
    public OmsOrderProduct selectOmsOrderProductByOmsOrderProductId(Long omsOrderProductId);

    /**
     * 查询订单-商品关联列表
     *
     * @param omsOrderProduct 订单-商品关联
     * @return 订单-商品关联集合
     */
    public List<OmsOrderProduct> selectOmsOrderProductList(OmsOrderProduct omsOrderProduct);

    /**
     * 新增订单-商品关联
     *
     * @param omsOrderProduct 订单-商品关联
     * @return 结果
     */
    public int insertOmsOrderProduct(OmsOrderProduct omsOrderProduct);

    /**
     * 修改订单-商品关联
     *
     * @param omsOrderProduct 订单-商品关联
     * @return 结果
     */
    public int updateOmsOrderProduct(OmsOrderProduct omsOrderProduct);

    /**
     * 删除订单-商品关联
     *
     * @param omsOrderProductId 订单-商品关联主键
     * @return 结果
     */
    public int deleteOmsOrderProductByOmsOrderProductId(Long omsOrderProductId);

    /**
     * 批量删除订单-商品关联
     *
     * @param omsOrderProductIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsOrderProductByOmsOrderProductIds(Long[] omsOrderProductIds);


    int insertOmsOrderProductList(@Param("addList") List<OmsOrderProduct> addList);

    int updateOmsOrderProductList(@Param("updateList") List<OmsOrderProduct> updateList);

    int delOmsOrderProductList(@Param("delList") List<OmsOrderProduct> delList);
}
